﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace JuniorProject.Models.Employee.CreationModels
{
    public class Create_QuestionModel
    {
        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Question")]
        public string Question { get; set; }

        public List<EmployeeSelectAnswerModel> Answers { get; set; }

        public Create_QuestionModel(string Question, List<EmployeeSelectAnswerModel> Answers)
        {
            this.Question = Question;
            this.Answers = Answers;
        }

        public Create_QuestionModel()
        {

        }
    }

    public class EmployeeSelectAnswerModel
    {
        [Display(Name = "Answer ID")]
        public int ID { get; set; }

        [Display(Name = "Answer")]
        public string Answer { get; set; }

        public bool Selected { get; set; }

        public EmployeeSelectAnswerModel(int ID, string Answer, bool Selected)
        {
            this.ID = ID;
            this.Answer = Answer;
            this.Selected = Selected;
        }

        public EmployeeSelectAnswerModel()
        {

        }

    }
}